package com._54programer.sourcecode.controller;

import com._54programer.sourcecode.initializer.FirstInitializer;
import com._54programer.sourcecode.service.InitializerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/initializer")
public class InitializerController {

    @Autowired
    private InitializerService initializerService;

    @GetMapping("/test1")
    public String test1(){
        return initializerService.getPropertySources("k1");
    }

    @GetMapping("/test2")
    public String test2(){
        return initializerService.getPropertySources("k2");
    }

    @GetMapping("/test3")
    public String test3(){
        return initializerService.getPropertySources("k3");
    }

}
